package com.ecnu.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * ecnu_活动_计划表
 * </p>
 *
 * @author zdn
 * @since 2025-03-24
 */
@Getter
@Setter
@TableName("project_plan")
public class ProjectPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    /**
     * 活动id
     */
    @TableField("pro_id")
    @NotBlank(message = "活动id不能为空")
    private String proId;

    @TableField("mission_id")
    private String missionId;
    /**
     * 名称
     */
    @TableField("name")
    @NotBlank(message = "名称不能为空")
    private String name;
    
    /**
     * 负责人
     */
    @JsonIgnore
    @TableField("charge")
    private String charge;
    /**
     * 计划完成日期
     */
    @TableField("start_time")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 计划完成日期
     */
    @TableField("end_time")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**
     * 优先级
     */
    @TableField("priority")
    private String priority;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 评分
     */
    @TableField("scoring")
    private String scoring;

    /**
     * 进度
     */
    @TableField("progress")
    private Integer progress;

    @TableField("isManual")
    private String isManual;

    /**
     * 删除状态(0正常，2删除)
     */
    @JsonIgnore
    @TableField("del_flag")
    private String delFlag;

    /**
     * 创建时间
     */
    @JsonIgnore
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @JsonIgnore
    @TableField("update_time")
    private LocalDateTime updateTime;


}
